package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/11/23 18:36
 * @desrcption: 列表设置
 */
@Getter
@Setter
@ToString
public class ColumnSetListDTO extends BaseDTO {

    private static final long serialVersionUID = -2133117873801669978L;

    @NotNull(message = "{dto.msg.columnSetList.appId.NotNull}")
    private Long appId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.columnSetList.formId.NotNull}")
    private Long formId;

    /**
     * 业务类型
     */
    private Integer businessType;

    /**
     * 子业务类型
     */
    private Integer subBusinessType;

    /**
     * 分组id，库存查询当前临时处理，用于区分3个不同业务，后面要改的，别乱抄作业
     */
    private Long groupId;

    /**
     * saas标识
     */
    private Integer saasMark;

    public ColumnSetListDTO() {
    }

    public ColumnSetListDTO(String corpid, @NotNull(message = "{dto.msg.columnSetList.appId.NotNull}") Long appId, @NotNull(message = "{dto.msg.columnSetList.formId.NotNull}") Long formId, Integer businessType, Integer subBusinessType, Long groupId, String userId) {
        this.appId = appId;
        this.formId = formId;
        this.businessType = businessType;
        this.subBusinessType = subBusinessType;
        this.groupId = groupId;
        setUserId(userId);
        setCorpid(corpid);
    }
}
